package com.biostime.springdraw.modules.sd.entity;

import java.util.Date;
import java.util.List;

import com.biostime.springdraw.common.persistence.DataEntity;

/**
 * 奖品阶段表Entity
 * @author king
 * @version 2016-01-18
 */
public class Section extends DataEntity<Section> {

	private static final long serialVersionUID = 1L;
	
	private Date startOn;// 开始时间
	private Date endOn;// 结束时间
	private int amount;// 用于保存的奖品数量
	private int awardId;// 奖品ID
	private String name;//抽奖名称
	private Double globalRate;//总体概率
	private Award award;//奖品
	private List<Integer> awardnums;//奖品数量列表
	private String code;//阶段码
	
	private List<Section> sections;//用于保存属于该抽奖名称的所有抽奖设置(不保存在数据库中)
	
	private Date now;// 当前时间
	
	public Section(){
		super();
	}
	
	public Section(String id){
		super(id);
	}
	
	public Date getStartOn() {
		return startOn;
	}

	public void setStartOn(Date startOn) {
		this.startOn = startOn;
	}
	
	public Date getEndOn() {
		return endOn;
	}

	public void setEndOn(Date endOn) {
		this.endOn = endOn;
	}
	
	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}
	
	public int getAwardId() {
		return awardId;
	}

	public void setAwardId(int awardId) {
		this.awardId = awardId;
	}

	public Award getAward() {
		return award;
	}

	public void setAward(Award award) {
		this.award = award;
	}

	public Date getNow() {
		return now;
	}

	public void setNow(Date now) {
		this.now = now;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Integer> getAwardnums() {
		return awardnums;
	}

	public void setAwardnums(List<Integer> awardnums) {
		this.awardnums = awardnums;
	}



	public Double getGlobalRate() {
		return globalRate;
	}

	public void setGlobalRate(Double globalRate) {
		this.globalRate = globalRate;
	}

	public List<Section> getSections() {
		return sections;
	}

	public void setSections(List<Section> sections) {
		this.sections = sections;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
